package com.bdbit.ChargingStation.event;

import com.bdbit.ChargingStation.entity.OrderEntity;

/**
 * 停止充电事件
 */
public class StopChargingEvent extends ChargingEvent {
    
    private final OrderEntity order;
    
    public StopChargingEvent(Object source, OrderEntity order) {
        super(source);
        this.order = order;
    }
    
    public OrderEntity getOrder() {
        return order;
    }
    
    @Override
    public String getEventType() {
        return "STOP_CHARGING";
    }
} 